package com.epoint.mobileoa.personalized.epointcompany.bizlogic;

import java.util.HashMap;

import android.os.Message;

import com.epoint.mobileoa.R;
import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.bizlogic.Task;
import com.epoint.mobileoa.tools.WebServiceUtilDAL;

/**
 * @author liyc
 * @time 2012-5-4 下午4:14:26
 * @annotation 
 */
public class SaveRizhiTask extends Task {

	public SaveRizhiTask(SuperView con, HashMap<String, Object> param) {
		super(con, param);
	}

	@Override
	public void exectue(Message mess) throws Exception {
		String url = getCon().getString(R.string.epointcompany_rizhi_url);
		String namespace = getCon().getString(R.string.epointcompany_rizhi_namespace);
		String method = "BtnRZSave";
		
		WebServiceUtilDAL webservice = new WebServiceUtilDAL(url,
				method, namespace);
		webservice.addProperty("RZRowGuid", getParam().get("RZRowGuid").toString());
		webservice.addProperty("UserName", getFP().getDisplayname());
		webservice.addProperty("UserGuid", getFP().getUserguid());
		webservice.addProperty("RZDate", getParam().get("RZDate").toString());
		webservice.addProperty("StartWorkTime", getParam().get("StartWorkTime").toString());
		webservice.addProperty("EndWorkTime", getParam().get("EndWorkTime").toString());
		webservice.addProperty("IsAddXinDeToBlog", getParam().get("IsAddXinDeToBlog").toString());
		webservice.addProperty("Experience", getParam().get("Experience").toString());
		webservice.addProperty("BlogTitle", getParam().get("BlogTitle").toString());
		String bs = webservice.start();
		setMessageToRefreshUI(mess, getCon(), bs);
	}

}
